package com.example.nonameaa.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 新闻信息
 * </p>
 *
 * @author NoName
 * @since 2024-10-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="News对象", description="新闻信息")
public class News implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "简介")
    private String description;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "发布人id")
    private Integer authorid;

    @ApiModelProperty(value = "发布时间")
    private String time;

    @TableField(exist = false)
    private String author;


}
